<?php
class FileAttachment extends Zend_Db_Table
{
	protected $_name = 'fileattachment';
	
	public function getIssueAttachments($issueId)
	{
		$select = $this->_db->select()
							->from($this->_name, array('id','filename'))
							->where('issueid = ?', $issueId);
		$results = $this->getAdapter()->fetchAll($select);
		return $results;
	}
}